﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Identity;
using WT.OpenIddict.Domain.Shared.User;

namespace WT.OpenIddict.Domain.User;

public class UserDetails : IdentityUser<Guid>
{
    /// <summary>
    ///     昵称
    /// </summary>
    [MaxLength(64)]
    public string NickName { get; set; }

    /// <summary>
    ///     性别
    /// </summary>
    [DefaultValue(EnumSexy.Male)]
    public EnumSexy Sex { get; set; }

    /// <summary>
    ///     微信公用ID
    /// </summary>
    [MaxLength(128)]
    public string UnionId { get; set; }

    public bool Banned { get; set; }

    /// <summary>
    ///     注册时间
    /// </summary>
    public DateTime RegisterTime { get; set; }
}